package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quwan.entity.TFinanceData;
import com.quwan.entity.TMemberBalanceLog;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author quan
 * @date 2021-07-28 16:34
 */


public interface TFinanceDataMapper extends BaseMapper<TFinanceData> {
    Page<TFinanceData> selectFinanceDataList(Page<TFinanceData> objectPage,
                                              @Param("beginTime") String beginTime,
                                              @Param("endTime") String endTime,
                                              @Param("curWeek") String curWeek,
                                              @Param("curMonth") String curMonth);

    Map<String, String> selectIndexData();


    List<Map<String, String>> selectMemberCountWithDate(@Param("beginTime") LocalDate beginTime,
                                                        @Param("endTime") LocalDate endTime);

    List<Map<String, String>> selectCompanyCommission(@Param("beginTime") LocalDate beginTime,
                                                      @Param("endTime") LocalDate endTime);

    TFinanceData selectFinanceData(LocalDate day);

    TMemberBalanceLog selectBalanceFee(LocalDate date);
}